// 全局类型定义

// 导航菜单项类型
export interface NavItem {
  path: string;
  name: string;
  icon: string;
}

// 面包屑项类型
export interface BreadcrumbItem {
  name: string;
  path: string;
}

// 学校类型
export interface School {
  id: number;
  name: string;
  students: number;
  contact: string;
}

// 用户类型
export interface User {
  id: number;
  name: string;
  role: string;
  school: string;
  status: string;
}

// 商品类型
export interface Product {
    id: number;
  name: string;
  price: number;
  stock: number;
  category: string;
  brand: string;
  description: string;
  image: string;
  pending?: boolean;
}

// 订单类型
export interface Order {
  id: string;
  customer: string;
  amount: number;
  status: string;
  date: string;
}

// 门店类型
export interface Store {
  id: number;
  name: string;
  manager: string;
  employees: number;
  status: string;
}

// 餐厅类型
export interface Restaurant {
  id: number;
  name: string;
  address: string;
  phone: string;
  rating: number;
  status: string;
  openTime: string;
  closeTime: string;
  type: string;
}

// 餐厅订单类型
export interface RestaurantOrder {
  id: string;
  items: string[];
  status: string;
  time: string;
}

// 交易类型
export interface Transaction {
  id: string;
  type: string;
  amount: number;
  description: string;
  date: string;
}

// 财务摘要类型
export interface FinanceSummary {
  totalIncome: number;
  totalExpense: number;
  netProfit: number;
  pendingPayments: number;
}

// 服务请求类型
export interface ServiceRequest {
  id: string;
  type: string;
  status: string;
  requestor: string;
  date: string;
  priority: string;
}

// 管理员用户类型
export interface AdminUser {
  id: number;
  username: string;
  role: string;
  lastLogin: string;
  status: string;
}

// 系统设置类型
export interface SystemSetting {
  name: string;
  value: string;
}

// 统计数据类型
export interface StatItem {
  title: string;
  value: string | number;
  trend?: string;
  trendUp?: boolean | null;
}

// 热销商品类型
export interface TopProduct {
  name: string;
  sales: number;
  revenue: number;
} 